<div id ="acctDetails">My Account Details</div>
<?php $edit = null;?>
<?php foreach ($this->user as $user){
    $uid = $user['id'];
	
//echo "First Name:" . " " .$this->escape($user['fname']) . "<br>";
//echo "Last Name:" . " "  .$this->escape($user['lname']). "<br>";
echo "Email Address: " . " " .$this->escape($user['email']) . "<br>";
//echo "School: " . " " .$this->escape($user['school']). "<br>";
echo "Username: " . " " .$this->escape($user['username']). "<br>"; 
$edit =$this->url(array("module"=>"account", "controller"=>"users", "action"=>"edit", "id"=>$uid));
}

?>

<a href="<?php echo $edit;?>">Edit Your account</a>